import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from "@/components/Home"
import User from "@/components/User"
import Navigation from "@/components/Navigation"
import SignIn from "@/components/SignIn"
import Logistics from "@/components/Logistics"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/navigation',
      name: 'navigation',
      component: Navigation,
      children: [
        {
          path: 'home',
          name: "Home",
          component: Home
        },
        {
          path: "user",
          name: "user",
          component: User
        },
        {
          path: "logistics",
          name: "logistics",
          component: Logistics
        }
      ]
    },
    {
      path: "/signin",
      name: "singin",
      component: SignIn
    }
  ]
})


